package com.wdd.myplatform.xxljobexecutor.feign;

import com.wdd.commmon.providerservice.entity.Goods;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(name = "provider-service")
@RefreshScope
public interface GoodsFeignJobService {

    @GetMapping("/goods/{goodsId}")
    @ApiOperation("查询商品详情")
    Goods getGoodsDetail(@PathVariable("goodsId") String goodsId);

}
